package com.clps.mapper;

import com.clps.dto.DepositDto;
import com.clps.entity.Deposit;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ywl
 * @since 2022-09-07
 */
@Repository
public interface DepositMapper extends BaseMapper<Deposit> {

    /**
     * 根据银行卡号,进行模糊匹配获取存款信息
     */
    List<Deposit> getDepositByCarNumber(@Param("cardNumber") String cardNumber);

    DepositDto getDepositWithUserInfoById(@Param("id")Long id);
}
